
from django.http.response import HttpResponse
from django.shortcuts import render

def index(request,paginate=0,page=0):


    return HttpResponse("hello django：%s ,%s" % (paginate, page))
    # return HttpResponse(paginate, page)  #仅仅心事第一个参数的值


def new1(request):

    data={
        "key":222,
    }
    return render(request, "users/index.html",data)


def new2(request):
    '''
    查询字符串，
    :param request:
    :return:
    '''
    paginate = request.GET.get("paginate")
    page = request.GET.get("page")

    return HttpResponse("params:%s,%s"% (paginate, page))


# def new4(request):
#     """
#
#     :param request:
#     :return:
#     """